<?php

use think\facade\Route;

Route::group(function () {
    Route::post('index/index', 'index/index');
    Route::post('user/register', 'user/register');
    Route::post('user/login', 'user/login');
    Route::post('pay/pay', 'pay/pay'); // 暂时不鉴权
    Route::group(function () {
        Route::post('api/user/testLogin', 'api/user/testLogin');
        Route::post('user/passengerList', 'api/user/addPassenger');
        Route::post('user/addPassenger', 'api/user/addPassenger');
        Route::post('user/editPassenger', 'api/user/editPassenger');
    })->middleware('token');

   
});

// })->allowCrossDomain();